package com.qf.homework.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Book implements Serializable {
    private Integer id;
    private String name;
    private String author;
    private String publish;
    private Integer sort;
    public String getCsv(){
        return id+","+name+","+author+","+publish+","+sort;
    }
}
